package cn.rui.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户登录日志
 * @author 徽州大都督
 * @date 2021/05/14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbl_login_log")
public class LoginLog implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String loginName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date getDate;

    private String content;

    //所在地
    private String cityLocation;

    //ip地址
    private String ipAddress;

    //邮政编码
    private Integer postalCode;

    @TableLogic
    private Integer deleted;
}
